<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../common/header.jsp"%>

<h1>Questionnaire management <div class="log-icon icon-right"></div></h1>
<hr/>

<h3>All Answer Table</h3>

<!-- 如果列表非空 -->
<c:if test="${!empty list}">
    <table class="table table-bordered table-striped">
        <tr>
            <th>ID</th>
            <th>Type</th>
            <th>UserId</th>
            <th>results</th>
            <th>title</th>
        </tr>

        <c:forEach items="${list}" var="item">
            <tr>
                <td>${item.id}</td>
                <td>${item.type} </td>
                <td>${item.userId} </td>
                <td>${item.results} </td>
                <td>${item.title} </td>
            </tr>
        </c:forEach>
    </table>
</c:if>

<%@ include file="../common/footer.jsp"%>